<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>模板语法</title>
    <script type="text/javascript" src="../js/vue.js"></script>
</head>
<body>
    <div id="root">
        <h1>差值语法</h1>
        <h3>hello,{{name}}</h3>
        <hr/>
        <h1>指令语法</h1>
        <a v-bind:href=url.toUpperCase() :t=Date.now()>百度</a>
        <a :href=school.url>{{school.name}}</a>
    </div>
</body>
    <script type="text/javascript">
        const x = new Vue({
            el:"#root",
            data:{
                name:"JACK",
                url:"http://www.baidu.com",
                school:{
                    name:'Rose',
                    url:"http://download.wcjxxm.com:8888"
                }
            }
        })
    </script>
</html>